package iu.grafico;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;

import javax.swing.JFrame;
import magnata.Magnata;

public class JanelaMagnata extends JFrame {
	Magnata jogo;
	PainelMagnata painel;

	JanelaMagnata (Magnata j) {
		super("--//Magnata\\--");
		jogo = j;
		
		addComponents();
		setVisible(true);
		this.setSize(700, 500);
		this.setMinimumSize(new Dimension(650, 450));
	}
	
	public void addComponents() {
		Container cp = getContentPane();
		cp.setLayout(new BorderLayout());
		painel = new PainelMagnata(jogo);
		cp.add(painel, BorderLayout.CENTER);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
}
